import { axios } from '../../utils/request'

const api = {
    save: '/finance/accountingSearchProgramme/save',
    list: '/finance/accountingSearchProgramme/getList',
    delete: '/finance/accountingSearchProgramme/delete',

    getNowAccount: '/erp/account/getLastErpAccount',//获取当前账套
}
/**
 * 保存方案
 */
export function save(data) {
    return axios({
        url: api.save,
        method: "post",
        data: data
    })
}

/**
 * 删除方案
 */
export function remove(data) {
    return axios({
        url: api.delete,
        method: "delete",
        params: data
    })
}

/**
 * 列表方案
 */
export function getList(data) {
    return axios({
        url: api.list,
        method: "get",
        params: data
    })
}

/**
 * 列表方案
 */
export function getNowAccount(data) {
    return axios({
        url: api.getNowAccount,
        method: "get",
        params: data
    })
}

